<?php
$moduleName   = $invokeParams['moduleName'];
$formDialogId = WacModuleHelper::getFormDialogId($invokeParams['moduleName']);
$formId       = WacModuleHelper::getFormId($invokeParams['moduleName']);

echo "<script type=\"text/javascript\" src=\"/js/backend/{$invokeParams['moduleName']}/".WacControlTableType::$moduleForm.".js\">";
echo "</script>";
echo "<div id=\"".$formDialogId."\" class=\"ui-widget\" style=\"display: none\" >\n\n";
?>
<!-- form, begin-->
<form action="#" name="<?php echo $formId;?>" id="<?php echo $formId;?>" method="post" class="wacFormA">
    <div class="wacFormFirstCol">
        <h3>
            <?php
            echo $invokeParams['caption'];
            ?>
        </h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft ">编号</div>
                <div class="wacFormItemRight">
                    <input name="code" id="<?php echo $moduleName; ?>_code" type="text" class="validate[required,custom[noSpecialCaracters]] wacFormText DataTD ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">出仓单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName; ?>_dispatch_order_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">QC日期</div>
                <div class="wacFormItemRight">
                    <input name="qc_date" id="<?php echo $moduleName; ?>_qc_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">出货日期</div>
                <div class="wacFormItemRight">
                    <input name="dispatch_date" id="<?php echo $moduleName; ?>_dispatch_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">返货日期</div>
                <div class="wacFormItemRight">
                    <input name="goods_return_date" id="<?php echo $moduleName; ?>_goods_return_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>
    </div>
    <div class="wacFormSecondCol" style="margin-right: 1px; margin-left: -65px; width:320px;">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">布幅</div>
                <div class="wacFormItemRight ">
                    <input name="roll" id="<?php echo $moduleName ?>_roll" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">布幅单位</div>
                <div class="wacFormItemRight ">
                    <select name="roll_unit_code" id="<?php echo $moduleName ?>_roll_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">匹长</div>
                <div class="wacFormItemRight ">
                    <input name="piece_length" id="<?php echo $moduleName ?>_piece_length" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">匹长单位</div>
                <div class="wacFormItemRight ">
                    <select name="piece_length_unit_code" id="<?php echo $moduleName ?>_piece_length_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">包装膜</div>
                <div class="wacFormItemRight ">
                    <select name="wrap_id" id="<?php echo $moduleName ?>_wrap_id" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            
        </div>

    </div>

    <div class="wacFormThirdCol" style="margin-right: 1px; margin-left: -5px;">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA wacFormContentSmall">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">验收标准</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                   <input name="standard" id="<?php echo $moduleName ?>_standard" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">标签要求</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                   <input name="label_requirement" id="<?php echo $moduleName ?>_label_requirement" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">等级</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                   <input name="level" id="<?php echo $moduleName ?>_level" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">匹条</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                   <input name="item1" id="<?php echo $moduleName ?>_item1" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">百家衣</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                   <input name="item2" id="<?php echo $moduleName ?>_item2" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">色号</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                   <input name="item3" id="<?php echo $moduleName ?>_item3" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>
    </div>
    
    <div class="wacFormClear"></div>
    <div class="wacFormBottom" align="center">

        <hr class="wacFormRuler" style="width:850px; float:inherit;" />
        <div class="wacFormRow">
            <div class="wacFormItemLeft">标签样</div>
            <div class="wacFormItemRight">
                <textarea name="label_memo" id="<?php echo $moduleName; ?>_label_memo" class="ui-widget-content ui-corner-all" cols="108" rows="4"></textarea></div>
            <div class="wacFormClear"></div>
        </div>
        <div class="wacFormRow">
            <div class="wacFormItemLeft">备注</div>
            <div class="wacFormItemRight">
                <textarea name="memo" id="<?php echo $moduleName; ?>_memo" class="ui-widget-content ui-corner-all" cols="108" rows="4"></textarea></div>
            <div class="wacFormClear"></div>
        </div>
        <div class="wacFormClear"></div>
        <input name="btnSubmit" id="<?php echo $moduleName; ?>_btnSubmit" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="提交" />
        &nbsp;&nbsp;
        <input name="btnClose" id="<?php echo $moduleName; ?>_btnClose" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="关闭" />
    </div>

    <input type="hidden" name="id" id="<?php echo $moduleName; ?>_id" value="0">
</form>
<!-- form, end-->
<?php echo "</div>"; ?>